#include "StdAfx.h"
#include "CritSec.h"

CCritSec::CCritSec(void)
{
	InitializeCriticalSection(&m_cs);
}

CCritSec::~CCritSec(void)
{
	DeleteCriticalSection(&m_cs);
}

void CCritSec::Lock()
{
	EnterCriticalSection(&m_cs);
}

void CCritSec::UnLock()
{
	LeaveCriticalSection(&m_cs);
}